import request from '@/utils/request'

// 查询车辆故障报警记录列表
export function listFaultLog(query) {
  return request({
    url: '/message/faultLog/list',
    method: 'get',
    params: query
  })
}

// 查询车辆故障报警记录详细
export function getFaultLog(id) {
  return request({
    url: '/message/faultLog/' + id,
    method: 'get'
  })
}

// 新增车辆故障报警记录
export function addFaultLog(data) {
  return request({
    url: '/message/faultLog',
    method: 'post',
    data: data
  })
}

// 修改车辆故障报警记录
export function updateFaultLog(data) {
  return request({
    url: '/message/faultLog',
    method: 'put',
    data: data
  })
}

// 删除车辆故障报警记录
export function delFaultLog(id) {
  return request({
    url: '/message/faultLog/' + id,
    method: 'delete'
  })
}
